<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
	protected function _initView()
	{
		$view = new Zend_View();
		$view->doctype('XHTML1_STRICT');
		$view->headMeta()->appendHttpEquiv('Content-Type',
		'text/html; charset=utf-8');
		$view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper');
		$view->addHelperPath('App/View/Helper/', 'App_View_Helper');
		$view->addHelperPath('ZendX/JQuery/View/Helper', 'ZendX_JQuery_View_Helper');
		Zend_Dojo::enableView($view);
		Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
		$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
		$viewRenderer->setView($view);
		//ZendX_JQuery_View_Helper_JQuery::enableNoConflictMode();
		return $view;
	}
	
	protected function _initDoctype()
	{
		$this->bootstrap('view');
		$view = $this->getResource('view');
		$view->doctype('XHTML1_STRICT');
	}

	protected function _initAutoload() {
        $autoLoader = Zend_Loader_Autoloader::getInstance ();
        $autoLoader->registerNamespace('Nicos_');
        return $autoLoader;
	}
    
    protected function _initRoutes()
    {
		$config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/routes.ini');
		$router = Zend_Controller_Front::getInstance()->getRouter();
		$router->addConfig($config, 'routes');
	}

}

